package com.five.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.five.dto.TeamQueryDto;
import com.five.dto.TeamsQueryDto;
import com.five.entity.TeamTypes;
import com.five.entity.Teams;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86158
* @description 针对表【teams(社团信息)】的数据库操作Mapper
* @createDate 2024-07-23 21:53:56
* @Entity com.five.entity.Teams
*/
public interface TeamsMapper extends BaseMapper<Teams> {
    Teams selectByName(String name);
    //查询数据
    List<Teams> selectTeams(TeamQueryDto teamQueryDto);

    // 数据条数测查询
    Integer selectTeamsCount(TeamQueryDto teamQueryDto);
    //    删除数据
    int delete(QueryWrapper<TeamTypes> queryWrapper);
    int deleteByManager(@Param("manager") String manager);
    //新增数据
    void insertTeams(Teams teams);

    List<Teams>selectTeamsMessage(TeamsQueryDto teamsQueryDto);

    Integer selectTeamsMessageCount(TeamsQueryDto teamsQueryDto);

    List<Teams> selecAll();

}




